package com.hdax.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hdax.dao.CancelApplyMapper;
import com.hdax.entity.CancelApply;
import com.hdax.service.CancelApplyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ${author}
 * @since 2021-03-22
 */
@Service
public class CancelApplyServiceImpl extends ServiceImpl<CancelApplyMapper, CancelApply> implements CancelApplyService {

    @Autowired
    private CancelApplyMapper cancelApplyMapper;

    @Override
    public CancelApply findCancelApplyByOrderId(Integer id) {
        return cancelApplyMapper.findCancelApplyByOrderId(id);
    }


    @Override
    public IPage<CancelApply> findCancelApply(IPage<CancelApply> page, Map map) {
        return cancelApplyMapper.findCancelApply(page,map);
    }

    @Override
    public CancelApply findCancelApplyById(Integer id) {
        return cancelApplyMapper.findCancelApplyById(id);
    }
}
